/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo06_switch_case穿透 {
    public static void main(String[] args) {

        int month = 11;

        // 没有加break会出现穿透现象,Switch语句执行完了最后一句代码,是不会回到头部重新执行
        switch (month) {

            case 1 : case 2: case 3:
                System.out.println("爆竹声中一岁除,春风送暖入屠苏！");
                break;
            case 4 : case 5: case 6:
                System.out.println("接天莲叶无穷碧，映日荷花别样红");
                break;
            case 7 : case 8: case 9:
                System.out.println("塞下秋来风景异，衡阳雁去无留意");
                break;
            case 10 : case 11: case 12:
                System.out.println("窗含西岭千秋雪，门泊东吴万里船");
                break;
            default:
                System.out.println("输出错误！");
                break;
        }

        System.out.println("程序结束！");

    }
}
